/* 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package com.googlecode.hmvc4gwt.example.hmvcblog.service.gwtrpc.client.blog.entry.comment;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.BlogEntryIdDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.BlogEntryCommentDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.BlogEntryCommentEditDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.BlogEntryCommentNewDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.BlogEntryCommentRemoveDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.exceptions.BlogEntryCommentAuthorNameEmptyException;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.exceptions.BlogEntryCommentNotFoundException;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.exceptions.BlogEntryCommentTextEmptyException;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.exceptions.BlogEntryNotFoundException;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.exceptions.NotBlogOwnerException;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.user.exception.NotLoggedInException;

/**
 * 
 * @author jens.meiss
 */
@RemoteServiceRelativePath("BlogEntryCommentRemote")
public interface IBlogEntryCommentRemoteService extends RemoteService {

	public void addBlogEntryComment(BlogEntryCommentNewDTO commentNewDTO) throws BlogEntryCommentTextEmptyException, BlogEntryCommentAuthorNameEmptyException, BlogEntryNotFoundException;

	public void editBlogEntryComment(BlogEntryCommentEditDTO commentEditDTO)throws BlogEntryCommentTextEmptyException, BlogEntryCommentAuthorNameEmptyException, BlogEntryNotFoundException, BlogEntryCommentNotFoundException, NotLoggedInException, NotBlogOwnerException;

	public List<BlogEntryCommentDTO> getListBlogEntryCommentDTO(
			BlogEntryIdDTO blogEntryIdDTO) throws BlogEntryNotFoundException;

	public void removeBlogEntryComment(
			BlogEntryCommentRemoveDTO commentRemoveDTO) throws NotLoggedInException, NotBlogOwnerException, BlogEntryCommentNotFoundException;

}
